package com.sjd.web.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取oss相关配置
 *
 * @author maple
 */
@Component
@ConfigurationProperties(prefix = "oss")
@Data
public class OssConfig {

    private AliOss aliOss;

    @Data
    public static class AliOss {
        String accessId;
        String accessKey;
        String endpoint;
        String bucket;
        long expireTime = 30;
    }
    public interface Provider{
        String ALI="ali";
        String TX = "tx";
    }
}
